package xyz.suancaiyu.chapter42.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 4.2.2 在Spring Boot工程中构建Web.
 *
 * @author puruidong
 * @version 2018/12/28 21:31
 */
@RestController
public class HelloController {

    /**
     * @return
     */
    @RequestMapping("/hello")
    public String index() {
        return "Greetings from Spring Boot!";
    }


}
